<?php

/**
 * Model of a WebSurveys of a surveyor
 * 
 * PHP5
 * 
 * @package Model.WebSurvey
 */
class WebSurvey extends AppModel {
    public $belongsTo = 'Surveyor';
    
    public $hasMany = array(
                        'Question' => array(
                                        'className' =>'Question'));
    public $hasOne = 'Template';
        
    public $validate = array(
                        'name' => array('rule' => 'notEmpty'),
                        'description' => array('rule' => 'notEmpty'));
}
